package com.ihome.android.util;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;

public class NumberKey extends KeyFunction {
	public NumberKey(Context paramContext, KeyItem paramKeyItem) {
		super(paramContext);
		this.item = paramKeyItem;
	}

	public AppConsts.KeyType getKeyType() {
		return AppConsts.KeyType.Number;
	}

	public View.OnClickListener getOnClickListener() {
		return new View.OnClickListener() {
			public void onClick(View paramAnonymousView) {
				LetterKey.clickView = paramAnonymousView;
				CustomKeyboard.sendMsg(false);
				SingleKeyItem localSingleKeyItem = (SingleKeyItem) paramAnonymousView.getTag();
				CustomKeyboard.sendCommand(NumberKey.this.context, AppConsts.SearchType.Data, localSingleKeyItem.getTitle(),item.id);
			}
		};
	}
}